
#include <fstream>
#include <iostream>
#include <stdlib.h>


int main(int argc, char** argv)
{
	
	if(argc < 3) {
		
		std::cout << "wrong input," << std::endl;
		std::cout << "the first argument should be a number (which discribes the size of the file in kb)" << std::endl;
		std::cout << "the second argument should be a string (which discribes the name of the file)" << std::endl;
		return -1;
	}
	
	char* c = argv[1];
	long long num = 0;
	
	while(*c != '\0') {
		
		num *= 10;
		num += *c - '0';
		c++;
	}
	
	num *= 1024;
	
	std::ofstream out(argv[2], std::ios::binary);
	int ranny;
	
	while(num >= 0) {
		
		ranny = rand() % 26 + 97;
		out << (char)ranny;
		num--;
	}
	
	return 0;
	
}